package com.xyd.Biz;

import com.xyd.Entity.FatherOrder;
import com.xyd.Entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: FatherOrderBiz
 * @Description:
 * @Author 余全盛
 * @Date: 2021/10/15 15:25
 */
public interface FatherOrderBiz {
    int addOrder(long fatherorderid, double sum, User user);

    FatherOrder selectFatherOrderByID(long fatherOrderid);

    List<FatherOrder> selectAllFatherorderByUser(User user);

    int updateFatherOrderState(int state, long fatherorderid);

    //根据用户名关键字和分页获取所有父订单
    List<FatherOrder> getFatherOrderByPagesAndNameKeyWord(String userNameKeyWord,String OrderIdKeyWord, int pageSize, int pageNum);

    //根据用户名关键字和订单号关键字获取所有订单的数量
    int getFatherOrderCountByNameKeyWord(String userNameKeyWord,String OrderIdKeyWord);

    //根据ID删除订单
    int delFatherOrderByID(long fatherOrderid);

}
